﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
         CodeBehind="Group.aspx.cs" Inherits="SARS.Course.Group.Group" %>

<%@ Register TagPrefix="uc" TagName="ProgramCourse" Src="~/UserControl/UcProgramCourse.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1 id="lblHeading" class="heading1Title">
        <b>GROUP MANAGE</b></h1>
    <uc:ProgramCourse ID="ucProgramCourse" runat="server" OnSelectedCourseChanged="ucProgramCourse_OnSelectedCourseChanged" />
    <asp:UpdatePanel ID="GroupPanel" runat="server">
        <ContentTemplate>
            <div>
                <asp:Button runat="server" ID="btnCreateLink" Text="Create Group" Width="120px" 
                            Height="28px" onclick="btnCreateLink_Click"/> 
                <br />
                &nbsp;
                <asp:GridView ID="groupList" runat="server" AutoGenerateColumns="False"
                              GridLines="None" AllowPaging="True" CellPadding="4" ItemType="GroupEntity" 
                              ForeColor="#333333" Width="580px"
                              EmptyDataText="There is no group in this Course, please select others.">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="GroupID" HeaderText="ID" SortExpression="GroupID" HeaderStyle-Width="50px">
                            <HeaderStyle Width="50px" HorizontalAlign="Left"></HeaderStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="GroupName" HeaderText="GroupName">
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="GroupTutorialNames" HeaderText="Tutorial">
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="btnEdit" OnClick="btnEdit_OnClick" Text="Edit"/>
                                <asp:LinkButton ID="btnSelect" runat="server" OnClick="btnSelect_OnClick" Text="Details" />
                                <asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_OnClick" Text="Delete" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" Width="120"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>